home *** CD-ROM | disk | FTP | other *** search
Text File | 1986-08-06 | 6.8 KB | 480 lines | [TEXT/ttxt] |
- /*
- * Sound Demonstration Program
- * written for the Boston MacWorld Expo
- * using the Macintosh Programmer's Workshop
- *
- * © 1986 Fred A. Huxham
- *
- *--------------------------------------
- * This is the Rez Code
- *--------------------------------------
- *
- */
-
-
- resource 'DLOG' (1000) {
- {40, 10, 330, 376},
- documentProc,
- invisible,
- goAway,
- 0x0,
- 1000,
- "SquareWave SoundDemo"
- };
-
- resource 'DITL' (1000) {
- { /* array DITLarray: 65 elements */
- /* [1] */
- {8, 8, 24, 40},
- CheckBox {
- enabled,
- "C"
- };
- /* [2] */
- {24, 8, 40, 48},
- CheckBox {
- enabled,
- "C#"
- };
- /* [3] */
- {40, 8, 56, 48},
- CheckBox {
- enabled,
- "D"
- };
- /* [4] */
- {56, 8, 72, 56},
- CheckBox {
- enabled,
- "D#"
- };
- /* [5] */
- {72, 8, 88, 40},
- CheckBox {
- enabled,
- "E"
- };
- /* [6] */
- {88, 8, 104, 40},
- CheckBox {
- enabled,
- "F"
- };
- /* [7] */
- {104, 8, 120, 56},
- CheckBox {
- enabled,
- "F#"
- };
- /* [8] */
- {120, 8, 136, 48},
- CheckBox {
- enabled,
- "G"
- };
- /* [9] */
- {136, 8, 152, 48},
- CheckBox {
- enabled,
- "G#"
- };
- /* [10] */
- {152, 8, 168, 40},
- CheckBox {
- enabled,
- "A"
- };
- /* [11] */
- {168, 8, 184, 48},
- CheckBox {
- enabled,
- "A#"
- };
- /* [12] */
- {184, 8, 200, 48},
- CheckBox {
- enabled,
- "B"
- };
- /* [13] */
- {8, 80, 24, 112},
- CheckBox {
- enabled,
- "C"
- };
- /* [14] */
- {24, 80, 40, 120},
- CheckBox {
- enabled,
- "C#"
- };
- /* [15] */
- {40, 80, 56, 120},
- CheckBox {
- enabled,
- "D"
- };
- /* [16] */
- {56, 80, 72, 128},
- CheckBox {
- enabled,
- "D#"
- };
- /* [17] */
- {72, 80, 88, 112},
- CheckBox {
- enabled,
- "E"
- };
- /* [18] */
- {88, 80, 104, 112},
- CheckBox {
- enabled,
- "F"
- };
- /* [19] */
- {104, 80, 120, 128},
- CheckBox {
- enabled,
- "F#"
- };
- /* [20] */
- {120, 80, 136, 120},
- CheckBox {
- enabled,
- "G"
- };
- /* [21] */
- {136, 80, 152, 120},
- CheckBox {
- enabled,
- "G#"
- };
- /* [22] */
- {152, 80, 168, 112},
- CheckBox {
- enabled,
- "A"
- };
- /* [23] */
- {168, 80, 184, 120},
- CheckBox {
- enabled,
- "A#"
- };
- /* [24] */
- {184, 80, 200, 120},
- CheckBox {
- enabled,
- "B"
- };
- /* [25] */
- {8, 152, 24, 184},
- CheckBox {
- enabled,
- "C"
- };
- /* [26] */
- {24, 152, 40, 192},
- CheckBox {
- enabled,
- "C#"
- };
- /* [27] */
- {40, 152, 56, 192},
- CheckBox {
- enabled,
- "D"
- };
- /* [28] */
- {56, 152, 72, 200},
- CheckBox {
- enabled,
- "D#"
- };
- /* [29] */
- {72, 152, 88, 184},
- CheckBox {
- enabled,
- "E"
- };
- /* [30] */
- {88, 152, 104, 184},
- CheckBox {
- enabled,
- "F"
- };
- /* [31] */
- {104, 152, 120, 200},
- CheckBox {
- enabled,
- "F#"
- };
- /* [32] */
- {120, 152, 136, 192},
- CheckBox {
- enabled,
- "G"
- };
- /* [33] */
- {136, 152, 152, 192},
- CheckBox {
- enabled,
- "G#"
- };
- /* [34] */
- {152, 152, 168, 184},
- CheckBox {
- enabled,
- "A"
- };
- /* [35] */
- {168, 152, 184, 192},
- CheckBox {
- enabled,
- "A#"
- };
- /* [36] */
- {184, 152, 200, 192},
- CheckBox {
- enabled,
- "B"
- };
- /* [37] */
- {8, 224, 24, 256},
- CheckBox {
- enabled,
- "C"
- };
- /* [38] */
- {24, 224, 40, 264},
- CheckBox {
- enabled,
- "C#"
- };
- /* [39] */
- {40, 224, 56, 264},
- CheckBox {
- enabled,
- "D"
- };
- /* [40] */
- {56, 224, 72, 272},
- CheckBox {
- enabled,
- "D#"
- };
- /* [41] */
- {72, 224, 88, 256},
- CheckBox {
- enabled,
- "E"
- };
- /* [42] */
- {88, 224, 104, 256},
- CheckBox {
- enabled,
- "F"
- };
- /* [43] */
- {104, 224, 120, 272},
- CheckBox {
- enabled,
- "F#"
- };
- /* [44] */
- {120, 224, 136, 264},
- CheckBox {
- enabled,
- "G"
- };
- /* [45] */
- {136, 224, 152, 264},
- CheckBox {
- enabled,
- "G#"
- };
- /* [46] */
- {152, 224, 168, 256},
- CheckBox {
- enabled,
- "A"
- };
- /* [47] */
- {168, 224, 184, 264},
- CheckBox {
- enabled,
- "A#"
- };
- /* [48] */
- {184, 224, 200, 264},
- CheckBox {
- enabled,
- "B"
- };
- /* [49] */
- {8, 296, 24, 328},
- CheckBox {
- enabled,
- "C"
- };
- /* [50] */
- {24, 296, 40, 336},
- CheckBox {
- enabled,
- "C#"
- };
- /* [51] */
- {40, 296, 56, 336},
- CheckBox {
- enabled,
- "D"
- };
- /* [52] */
- {56, 296, 72, 344},
- CheckBox {
- enabled,
- "D#"
- };
- /* [53] */
- {72, 296, 88, 328},
- CheckBox {
- enabled,
- "E"
- };
- /* [54] */
- {88, 296, 104, 328},
- CheckBox {
- enabled,
- "F"
- };
- /* [55] */
- {104, 296, 120, 344},
- CheckBox {
- enabled,
- "F#"
- };
- /* [56] */
- {120, 296, 136, 336},
- CheckBox {
- enabled,
- "G"
- };
- /* [57] */
- {136, 296, 152, 336},
- CheckBox {
- enabled,
- "G#"
- };
- /* [58] */
- {152, 296, 168, 328},
- CheckBox {
- enabled,
- "A"
- };
- /* [59] */
- {168, 296, 184, 336},
- CheckBox {
- enabled,
- "A#"
- };
- /* [60] */
- {184, 296, 200, 336},
- CheckBox {
- enabled,
- "B"
- };
- /* [61] */
- {208, 152, 237, 216},
- StaticText {
- enabled,
- "Middle\nC"
- };
- /* [62] */
- {208, 80, 256, 144},
- StaticText {
- enabled,
- "One \nOctave\nBelow"
- };
- /* [63] */
- {208, 8, 256, 72},
- StaticText {
- enabled,
- "Two\nOctaves\nBelow"
- };
- /* [64] */
- {208, 224, 256, 288},
- StaticText {
- enabled,
- "One \nOctave\nAbove"
- };
- /* [65] */
- {208, 296, 256, 360},
- StaticText {
- enabled,
- "Two\nOctaves\nAbove"
- }
- }
- };
-
- resource 'ICN#' (128, "SoundIcon", purgeable, preload) {
- { /* array: 2 elements */
- /* [1] */
- $"0000 1F00 0000 FF00 0007 F900 003F C100"
- $"01FE 0100 01F0 0100 0100 0100 0100 0100"
- $"0100 0100 0100 0100 0100 0100 FFFF FFFF"
- $"0100 0100 0100 3D00 0100 7F00 0100 7F00"
- $"FFFF FFFF 7F00 7F00 7F00 3C00 7F00 0000"
- $"7F00 0000 FFFF FFFF 0000 0000 0000 0000"
- $"0000 0000 0000 0000 FFFF FFFF 0000 0000"
- $"0000 0000 0000 0000 0000 0000 0000 0000";
- /* [2] */
- $"FFFF FFFF FE7F 4B7B A400 C007 C660 0801"
- $"C272 0601 C8D2 4E09 936B 6D29 A01B 2209"
- $"A068 7E01 DFAF 3E51 80A0 2C01 C05B 8421"
- $"C088 BE55 C106 5605 D193 E285 CA05 0107"
- $"8739 0127 8381 0117 CCA1 0017 D801 BDD7"
- $"C615 81A7 C147 6067 CCAB 32E7 D410 1C47"
- $"C020 0C47 C4F1 0283 E685 608B E18B 1587"
- $"E1BB 6027 F304 BB17 FC03 C1DB FFFF FFFF"
- }
- };
-
- resource 'BNDL' (128, "SoundDemo") {
- 'Snd1',
- 0,
- { /* array TypeArray: 2 elements */
- /* [1] */
- 'ICN#',
- { /* array IDArray: 1 elements */
- /* [1] */
- 0,
- 128
- };
- /* [2] */
- 'FREF',
- { /* array IDArray: 1 elements */
- /* [1] */
- 0,
- 128
- }
- }
- };
-
- resource 'FREF' (128, "FREF 1") {
- 'APPL',
- 0,
- ""
- };
-
- data 'Snd1' (0) {
- $"6522 536F 756E 6444 656D 6F22 0D41 2053" /* e"SoundDemo"¬A S */
- $"6F75 6E64 2064 656D 6F6E 7374 7261 7469" /* ound demonstrati */
- $"6F6E 2070 726F 6772 616D 0D77 7269 7474" /* on program¬writt */
- $"656E 2066 6F72 2074 6865 2042 6F73 746F" /* en for the Bosto */
- $"6E20 4D61 6357 6F72 6C64 2045 7870 6F2E" /* n MacWorld Expo. */
- $"2020 A931 3938 3620 4672 6564 2041 2E20" /* ©1986 Fred A. */
- $"4875 7868 616D" /* Huxham */
- };
-
-